package parser;

import antlr.RecognitionException;

class BreakStmt extends Stmt {
    
    LoopStmt loop;
    
    BreakStmt(LoopStmt loop) {
        this.loop = loop;
    }
    
    void write(ByteStream out) throws RecognitionException {
        out.line(line);
        loop._break(out.branch(Opcodes.BREAK));
    }
    
}
